package com.example.base.db

import androidx.room.*
import com.example.base.user.UserBean

@Dao
interface UserDap {
    @Insert(onConflict = OnConflictStrategy.REPLACE)
    suspend fun insertUserInfo(userBean: UserBean)

    @Delete
    suspend fun DeleteUserInfo(userBean: UserBean)

    @Update
    suspend fun upDateUserInfo(userBean: UserBean)

    @Query("select * from user_info where uName=:username")
    suspend fun queryUserInfoByName(username: String): UserBean
}